package com.atguigu.gmall.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.atguigu.gmall.service.AsyncService;
import org.springframework.stereotype.Component;


/**
 * @author Jerry.Su
 * @Date 2022/2/18 16:21
 */
@Service(async = true)
@Component
public class AsyncServiceImpl1 implements AsyncService {


    @Override
    public String sayHi(String name) {
//        try {
//            TimeUnit.SECONDS.sleep(5);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
        return "Hello " + name;
    }

}
